Einhugur UUID7 Plugin

EinhugurUUIDv7 Class

A class to generate and manage version 7 UUID’s.

Object
   EinhugurUUIDv7

class EinhugurUUIDv7

Constructors

EinhugurUUIDv7 (private) Private constructor.
EinhugurUUIDv7Constructs EinhugurUUIDv7 from string.

Methods

shared NewUUIDGenerates new EinhugurUUIDv7 instance without passing previous UUID down.
shared NewUUIDGenerates new EinhugurUUIDv7 instance, taking in previous UUID for for sequencing.
Operator_CompareCompares if two EinhugurUUIDv7 instances are equal by using the Xojo comparison operators.
ToStringGets string representation of the UUID.

Examples

Generate just one UUID v7:

var id as String = EinhugurUUIDv7.NewUUID().ToString()



Generate 100 sequenced UUID v7:

var ids(-1) as String
var id as EinhugurUUIDv7

for I as Integer = 1 to 100
    id = EinhugurUUIDv7.NewUUID(id)
   
    ids.Add(id.ToString())
next


Supported Platforms:

  • macOS Intel 64 bit
  • macOS Apple Silicon
  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • Linux ARM 64 bit
  • iOS